Basic Library for WPF and Silverlight | ComponentOne
C1.WPF Namespace / TypeEx Class / New Method / New<T>(Type,Action<T>) Method
The type.
The initializers.

In This Topic
    New<T>(Type,Action<T>) Method
    In This Topic
    Creates a new instance of this type using the default constructor.
    Syntax
    'Declaration
     
    
    <ExtensionAttribute()>
    Public Overloads Shared Function New(Of T)( _
       ByVal type As Type, _
       ByVal initializers As Action(Of T) _
    ) As T
    [Extension()]
    public static T New<T>( 
       Type type,
       Action<T> initializers
    )

    Parameters

    type
    The type.
    initializers
    The initializers.

    Type Parameters

    T

    Return Value

    A new instance of type T
    See Also